package cn.zhiwen.entity;

import java.io.Serializable;

/**
 * <pre>
 * BaseRequestModelI
 * </pre>
 * @author lusue
 * @version BaseRequestModelI.java, v 0.1 2017/8/23 10:22 lusue Exp $
 */
public class BaseRequestModelII<T> implements Serializable {
    private static final long serialVersionUID = -4464491005043566647L;

    private String            token;

    private String            userId;

    private String            sign;

    private String            time;

    private Integer           form;

    private Integer           operateCode;

    private String            operateName;

    private T                 reqData;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserId() {
        if (null != this.userId) {
            return userId;
        }
        String[] tokenInfo = this.token.split("_");
        if (tokenInfo.length != 2) {
            return null;
        }
        this.userId = tokenInfo[0];
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public T getReqData() {
        return reqData;
    }

    public void setReqData(T reqData) {
        this.reqData = reqData;
    }

    public Integer getForm() {
        return form;
    }

    public void setForm(Integer form) {
        this.form = form;
    }

    public Integer getOperateCode() {
        return operateCode;
    }

    public void setOperateCode(Integer operateCode) {
        this.operateCode = operateCode;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }

}
